package com.boot.down.util;

/**
 * @author dell
 */

public enum  Response {

    /**
     * 正常访问
     */
    OK(200,"正常访问"),
    /**
     * 无效或者错误的参数
     */
    INVALID(400,"无效或者错误的参数"),
    /**
     * 需要提供凭证
     */
    UN_LOGIN(401,"需要提供凭证"),
    /**
     * 无权访问
     */
    UN_AUTH(403,"无权访问"),
    /**
     * 服务器内部错误
     */
    ERROR(500,"服务器内部错误");

    Response(int code,String desc){
        this.code = code;
        this.desc = desc;
    }

    private String desc;

    private int code;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
